<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:76:"D:\phpstudy_pro\WWW\demo\public/../application/admin\view\category\edit.html";i:1579254096;}*/ ?>
﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/static/admin/Css/public.css" rel="stylesheet" type="text/css" />
<title>文章分类管理</title>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
	<tr class="topbg"><td>文章分类管理</td></tr>
	<tr class="tdbg">
		<td height="30">&nbsp;&nbsp;
			<a href="#">管理首页</a>&nbsp;|&nbsp;
			<a href="#">添加文章分类</a>
		</td>
	</tr>
</table>
<br />
<form name="form1" method="post" action="<?php echo url('admin/category/update'); ?>">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
	<input type="hidden" name="id" value="<?php echo $data['id']; ?>">
	<tr class="title"><td colspan="2" align="center">编辑文章分类</td></tr>
	<tr class="tdbg">
		<td width="11%" height="30" align="right">名&nbsp;&nbsp;称：</td>
		<td width="89%"><input name="classname" type="text" size="90" maxlength="20" value="<?php echo $data['classname']; ?>" /></td>
	</tr>
	<tr class="tdbg">
		<td height="30" align="right">排&nbsp;&nbsp;序：</td>
		<td>
			<input name="orderby" type="text" size="5" maxlength="5"  value="<?php echo $data['orderby']; ?>"/>
			数值数小，排序越靠前
		</td>
	</tr>
	<tr class="tdbg">
		<td height="30" align="right">父分类：</td>
		<td>

			<select name="pid">
				<option value="0">无</option>
				<?php foreach($List as $v): ?>
					<option value="<?php echo $v['id']; ?>" <?php if(($v['id'] == $data['pid'])): ?> selected <?php endif; ?>>
						<?php echo str_repeat('--',$v->level*2); ?>
						<?php echo $v['classname']; ?>
					</option>
				<?php endforeach; ?>
			</select>
		</td>
	</tr>
	<tr class="tdbg">
		<td height="30" align="right">&nbsp;</td>
		<td>
			<input type="submit" value="修改" />
			<input type="button" onclick="history.go(-1)" value="返回" />
		</td>
	</tr>
</table>
</form>
</body>
</html>